﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame1
{
    class Camera3D
    {
        public Matrix projection;
        public Vector3 position, lookAt;

        public Camera3D()
        {
            projection = Matrix.CreatePerspectiveFieldOfView(
                MathHelper.PiOver4,
                Game1.Self.GraphicsDevice.Viewport.AspectRatio,
                1f,
                50);

            position = new Vector3(0, 30, 30);
            lookAt = new Vector3(0, 0, 0);
        }

        public Matrix View
        {
            get
            {
                Matrix view = Matrix.CreateLookAt(
                    position,
                    lookAt,
                    Vector3.Up);

                return view;
                
            }
        }
    }
}
